<?php
require_once $_SERVER ["DOCUMENT_ROOT"] . "/config/dbconfig.php";
//$dbh = new PDO('mysql:host=localhost;dbname=test', $user, $pass);
$db = new PDO ( sprintf ( 'mysql:host=%s;dbname=%s', $DB_HOST, $DB_NAME ), $DB_USERNAME, $DB_PASSWORD );
$db->query("SET NAMES 'utf8'");
